// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 预备 数据 分页  POST */
export async function pagePretreatmentRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<DatahubRecordData.PretreatmentRecordPage[]>>(
    '/datahub/pretreatment/record/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取来源列表  POST */
export async function getPretreatmentRecordSourceList(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<DatahubRecordData.SourceList[]>>(
    '/datahub/source/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取渠道列表oPOST */
export async function getPretreatmentRecordChannelList(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<DatahubRecordData.ChannelList>>(
    '/datahub/channel/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取区域列表oPOST */
export async function getPretreatmentRecordAreaCascaders(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<DatahubRecordData.ChannelList[]>>(
    '/datahub/area/cascaders',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取数据详情oPOST */
export async function selectPretreatmentRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<DatahubRecordData.SelectRecord>>(
    '/datahub/pretreatment/record/select',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取数据详情oPOST */
export async function updatePretreatmentRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<DatahubRecordData.UpdateRecord>>(
    '/datahub/pretreatment/record/update',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 推送 记录 到 文化报表 POST */
export async function putAssessPretreatmentRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<DatahubRecordData.UpdateRecord>>(
    '/datahub/pretreatment/record/put/assess',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
